<?php

	class Logger
	{

		public static function write($msg, $method = 'general')
		{
			$message = date('Y-m-d H:i:s') . "\t" . $msg . "\n";

			if (!file_exists(LOG_PATH . '/' . $method)) {
				mkdir(LOG_PATH. '/' . $method, 0777, true);
			}

			file_put_contents(LOG_PATH . '/' . $method . '/' . date('Y-m-d') . '.txt', $message, FILE_APPEND);
		}

	}